﻿
using System;

namespace Test30.Core
{
    public static class VecExtensions
    {
        public static float Distance(this Vec a, Vec b)
        {
            return (float)Math.Sqrt(Math.Abs(a.X - b.X) * Math.Abs(a.X - b.X) + Math.Abs(a.Y - b.Y) * Math.Abs(a.Y - b.Y));
        }
    }
}
